<div id="xoa">
	<?php
		$baiviet = new baivietbs();
		$baiviet->MaBaiViet = $_GET['id'];
		$kq = $baiviet->Xoa();
		if($kq)
		{
			session_start();
			$nhatky = new nhatkybs();
			$nhatky->TenSuKien = "Xóa bài viết";
			$nhatky->MaNguoiDung = $_SESSION["MaND"];
			date_default_timezone_set('Asia/Ho_Chi_Minh');
			$nhatky->ThoiGian = date("Y-m-d H:m:s", time());
			$nhatky->Them();
			header("Location:index.php?do=baiviet");
		}
		else
			echo "Lỗi truy vấn!";
	?>
</div>